package com.bookcode.service;
import com.bookcode.dao.QueQinRepository;
import com.bookcode.entity.Queqin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 刘浩然
 * @Date: 2020/10/23 0:25
 */
@Service
public class QueqinService {
    @Autowired
    QueQinRepository queqinRepository;

   public  void save(Queqin queqin){
        queqinRepository.save( queqin);
   }

   public List<Queqin> findAll(){
      return queqinRepository.findAll();
   }
}
